package work.jame.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import work.jame.blog.pojo.ArticleTag;
import work.jame.blog.pojo.ArticleTagRelation;
import work.jame.blog.mapper.ArticleTagRelationMapper;
import work.jame.blog.service.ArticleTagRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Jame
 * @since 2023-05-17
 */
@Service
public class ArticleTagRelationServiceImpl extends ServiceImpl<ArticleTagRelationMapper, ArticleTagRelation> implements ArticleTagRelationService {

    @Resource
    private ArticleTagRelationMapper articleTagRelationMapper;

    @Override
    public List<ArticleTag> queryArticleTagsByArticleId(Long articleId) {
        return articleTagRelationMapper.queryArticleTagsByArticleId(articleId);
    }
}
